package edu.neu.cs6515.xml;

import java.awt.Color;

import javax.xml.bind.annotation.XmlEnum;

import lombok.Getter;

/**
 * All valid colors in the Ingenious game The WHITE color represents a field on
 * the board that is not occupied 
 * to be used anywhere else
 */
@XmlEnum
public enum IngeniousColor {
    BLUE(Color.BLUE), ORANGE(new Color(0xFFA500)), YELLOW(Color.YELLOW), PURPLE(
            new Color(0xC400FF)), RED(Color.RED), GREEN(Color.GREEN), WHITE(
            Color.WHITE);

    @Getter
    private Color color;

    /**
     * C'tor 
     * @param color the java swing color
     */
    private IngeniousColor(final Color color) {
        this.color = color;
    }
}
